// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '缴费',
        name: 'PayInfo',
        url: "/PayInfo/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"RoomCode":"","BedCode":"","patientCode":"","total":"","PayPlat":"","PayTime":"","IsPay":""};
    const editFormOptions = [[{"title":"房间编号","required":true,"field":"RoomCode","type":"text"}],
                              [{"title":"床位编号","required":true,"field":"BedCode","type":"text"}],
                              [{"title":"病人编号","required":true,"field":"patientCode","type":"text"}],
                              [{"title":"费用总计","required":true,"field":"total","type":"text"}],
                              [{"dataKey":"缴费平台","data":[],"title":"缴费平台","field":"PayPlat","type":"select"}],
                              [{"title":"缴费时间","field":"PayTime","type":"datetime"}],
                              [{"dataKey":"缴费状态","data":[],"title":"缴费状态","field":"IsPay","type":"radio"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'Id',title:'主键Id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'RoomCode',title:'房间编号',type:'string',width:110,require:true,align:'left'},
                       {field:'BedCode',title:'床位编号',type:'string',width:110,require:true,align:'left'},
                       {field:'patientCode',title:'病人编号',type:'string',width:110,require:true,align:'left'},
                       {field:'total',title:'费用总计',type:'decimal',width:110,require:true,align:'left'},
                       {field:'PayPlat',title:'缴费平台',type:'int',bind:{ key:'缴费平台',data:[]},width:110,hidden:true,align:'left'},
                       {field:'PayTime',title:'缴费时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'IsPay',title:'缴费状态',type:'int',bind:{ key:'缴费状态',data:[]},width:110,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}